package com.xjh.basestudy.designmode.behaviorMode.behaviorMode9_Visitor.p2_batch;

import com.xjh.basestudy.designmode.behaviorMode.behaviorMode9_Visitor.p2_batch.Product;
import com.xjh.basestudy.designmode.behaviorMode.behaviorMode9_Visitor.p2_batch.Visitor;

import java.time.LocalDate;

/**
 * @Author XuJianHua
 * @Date 2022/10/5 21:18
 * @Description

 */
public class Wine extends Product implements Acceptable{

    public Wine(String name, LocalDate producedDate, float price) {
        super(name, producedDate, price);
    }



    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);// 把自己交给访问者
    }


}